﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true" 
CodeBehind="DanhSachHoaDon.aspx.cs" Inherits="GreenLife.Admin.DanhSachHoaDon" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <form id="Form1" runat="server">
    <asp:Repeater ID="listOrder" runat="server" OnItemCommand="cpRepeaterOrder_ItemDataBound">
        <HeaderTemplate>
            <table>
                <thead style="color: Green;">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="OrderID&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="CustomerID&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text="SubCategoryID&nbsp&nbsp"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text="CreateDate&nbsp&nbsp"></asp:Label>
                        </td>
                    </tr>
                </thead>
        </HeaderTemplate>
        <ItemTemplate>
            <tbody>
                <tr>
                    <td>
                        <asp:Label ID="lbID" runat="server" Text='<%# Bind("OrdersID") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbTitle" runat="server" Text='<%# Bind("CustomerID") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbBriefContent" runat="server" Text='<%# Bind("SubCategoryID") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lbDayModified" runat="server" Text='<%# Bind("CreateDate") %>'></asp:Label>
                    </td>
                    <td>
                        <a href='ChinhSuaHoaDon.aspx?id=<%# DataBinder.Eval(Container.DataItem ,"OrdersID") %>'>
                            Update</a>
                    </td>
                    <td>
                        <asp:LinkButton ID="lnkDelete" CommandName="delete" OnClientClick='javascript:return confirm("Are you sure you want to delete?")'
                            CommandArgument='<%# DataBinder.Eval(Container.DataItem, "OrdersID") %>' runat="server">Delete</asp:LinkButton>
                    </td>

                </tr>
            </tbody>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <cc1:CollectionPager ID="CollectionPager1" runat="server" BackNextDisplay="HyperLinks"
        BackNextLinkSeparator="" BackNextLocation="Left" BackText="" LabelText="" LastText=""
        NextText="" PageNumbersDisplay="Numbers" PageNumbersSeparator="&nbsp;" PagingMode="QueryString"
        ResultsFormat="" ResultsLocation="Bottom">
    </cc1:CollectionPager>
    </form>

</asp:Content>
